home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Games Machine 76
/
XENIATGM66.iso
/
Indiana Jones
/
Indiana Jones.exe
/
RESOURCE
/
PREVIEW.GOB
/
cog_origdemo_connector.cog
< prev
next >
Wrap
Text File
|
1999-11-15
|
3KB
|
115 lines
# Jones 3D Cog Script
#
# demo_connector.cog
#
# [DS & revised by HB]
#
# (C) 1999 LucasArts Entertainment Company LLC. All Rights Reserved
#
# ==============================================================================
symbols
message entered
keyframe in_hatpush=0in_figithat_4_4.key local
# keyframe in_think=0in_thinking_4_4.key local
keyframe in_sideTOhips=0in_stand1_bd_4.key local
keyframe in_handsONhips=0in_stand4.key local
keyframe in_botharmsup=0in_armsup_1_1.key local
sound in_names=jp01j01a.wav local # Sophia? Turner? 2.5s
sound in_where=jp01j02.wav local # Where is everybody? 2.7s
sound music0=mus_jep_intro.wav local
sector sec_trigger
thing jeep_start_actor nolink # This is now a mark (was startplayer in full level)
thing player local
thing indyactor nolink
thing campos_lo nolink
thing campos_hi nolink
thing camtarg nolink
material topMat=jeep_top.mat local
material botMat=jeep_bbmp.mat local
int in_keytrack1 local
int in_keytrack2 local
int cursound local
int bSeen=0 local
end
# ==============================================================================
code
entered:
if (GetSenderRef() != sec_trigger) return;
if (bSeen) return; # RT
bSeen = 1;
player = GetLocalPlayerThing();
TeleportThing(player, jeep_start_actor);
SetThingFlags(jeep_start_actor, 0x80000);
SetThingFlags(player, 0x80000);
SetActorFlags(player, 0x200000);
# switch camera first
SetCameraLookInterp(2, 0);
SetCameraPosInterp(2, 0);
SetCameraFocus(2, campos_lo);
SetCameraSecondaryFocus(2, camtarg);
SetCurrentCamera(2);
# RT: Set up jeep materials
SetMaterialCel(topMat, 2);
SetMaterialCel(botMat, 2);
AttachThingToThing(camtarg, indyactor);
StartCutscene(2);
ClearThingFlags(indyactor, 0x80000);
CopyPlayerHolsters(player, indyactor);
PlaySoundLocal(music0, 1.0, 0.0, 0x0, 0);
# let engine generate frame
Sleep(0.01);
AISetMoveSpeed(indyactor, 1.0);
AISetMoveThing(indyactor, jeep_start_actor, 0);
SetCameraPosInterp(2, 1);
SetCAmeraInterpSpeed(2, 4.5);
Sleep(0.01);
SetCameraFocus(2, campos_hi);
AIWaitForStop(indyactor);
cursound=PlayVoice(indyactor, in_names, 1.0, 0);
Sleep(1.0);
in_keyTrack1 = PlayKey(indyactor, in_handsONhips, 2, 0x0, 0);
PlayKey(indyactor, in_sideTOhips, 4, 0x12, 1);
in_keyTrack2 = PlayKey(indyactor, in_hatpush, 4, 0x12, 0);
Sleep(1.5);
StopKey(indyactor, in_keyTrack1, 0.5);
StopKey(indyactor, in_keyTrack2, 0.5);
Sleep(0.5);
WaitForSound(cursound);
PlayVoice(indyactor, in_where, 1.0, 0);
PlayKey(indyactor, in_botharmsup, 4, 0x12, 1);
ResetCameraFOV(0, 0.0);
SetCameraLookInterp(2, 0);
SetCameraPosInterp(2, 0);
SetThingFlags(indyactor, 0x80000);
ClearThingFlags(player, 0x80000);
SetThingAlpha(player, 1.0);
SetCameraPosition(1, GetThingPos(campos_hi));
SetCurrentCamera(1);
EndCutscene();
ClearActorFlags(player, 0x200000);
return;
end